<extend name="Public:Base" />
<block name="content">
	<script type="text/javascript" src="__PUBLIC__/Js/ValidForm.js"></script>
	<h2 class="listHeader">举报反馈</h2>
	<p class="font12 colorL tis">欢迎给我们提出意见和建议，您留下的每个字都将被用于改善我们的服务。</p>
	<form method="POST" id="form1" action="Public_feedback.do" class="clearfix">
		<div class="comt-comterinfo" id="comment-author-info" style="display:block;padding-left:0px;">
			<ul>
				<li class="form-inline">
					<label class="hide" for="nickname">昵称</label>
					<input class="ipt" type="text" name="nickname" id="nickname" value="{$Think.session.nickname}" tabindex="2" placeholder="昵称">
					<span class="help-inline">您的昵称 (必填)</span>
				</li>
				<li class="form-inline">
					<label class="hide" for="email">邮箱</label>
					<input class="ipt" type="text" name="email" id="email" value="anonymous@anonymous.com" tabindex="3" placeholder="邮箱" datatype="e" errormsg="请输入正确的电子邮箱地址！" nullmsg="请输入您的登录邮箱" >
					<span class="help-inline">您的邮箱 (必填)</span>
				</li>
				<li class="form-inline">
					<label class="hide" for="url">网址</label>
					<input class="ipt" type="text" name="url" id="url" value="" tabindex="4" placeholder="网址">
					<span class="help-inline">您的网址</span>
				</li>
				<li class="form-inline">
					<label class="hide" for="url">您的意见</label>
					<textarea placeholder="写点什么..." class="input-block-level comt-area" name="content" id="CommentContent" cols="100%" rows="3" tabindex="1" onkeydown="if(event.ctrlKey && event.keyCode==13){document.getElementById('CommentSubmit').click();return false};"></textarea>
					<span class="help-inline">按Ctrl+Enter快速提交!</span>
				</li>
			</ul>
		</div>
		<input type="hidden" name="action" value="save"/>
		<input type="hidden" name="url" value="{$url}"/>
		<button class="btn btn-primary pull-right" type="button" id="CommentSubmit" tabindex="5" style="opacity: 1;"> <i class="icon-ok-circle icon-white icon12"></i>
		提  交
		</button>
	</form>
	<script type="text/javascript">
		$("#form1").Validform({
			btnSubmit:"#CommentSubmit", 			
			tiptype:function(msg,o,cssctl){
				if(!o.obj.is("form")){
					if(o.type==2){
						$(o.obj).attr('class','w45 rightBox');
						$(o.obj).parent().find('.msg p').removeClass('red').html(msg);
					}else if (o.type==3){
						$(o.obj).attr('class','w45 wrongBox');
						$(o.obj).parent().find('.msg p').addClass('red').html(msg);
					}else{
						var objtip=o.obj.siblings(".Validform_checktip");
						cssctl(objtip,o.type);
						objtip.text(msg);
					}
				}
			}
		});
	</script>
</block>